import json
from datetime import date

from django.http import HttpResponse
from django.shortcuts import render

# Create your views here.
from article.models import Article


# 上传 文件 ，这里由前端上传，这里只记录 七牛云的地址

def upload(request):
    print(request.method)
    if request.method == 'POST':
        print("the POST method")
        concat = request.POST
        postBody = request.body
        json_result = json.loads(postBody)
        print(json_result)



        return HttpResponse("成功")
    else:
        return HttpResponse("不支持的方法")
